home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / nfsmount / RCS / mount_clnt.c,v < prev    next >
Text File  |  1989-10-10  |  3KB  |  182 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.2
  10. date     89.10.10.13.17.15;  author douglis;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     88.11.02.12.43.22;  author brent;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @This file derived from mount.x
  22. @
  23.  
  24.  
  25. 1.2
  26. log
  27. @Changed void * to VoidPtr to remove lint
  28. @
  29. text
  30. @#include <rpc/rpc.h>
  31. #include <sys/time.h>
  32. #include "mount.h"
  33.  
  34. static struct timeval TIMEOUT = { 25, 0 };
  35.  
  36. VoidPtr 
  37. mountproc_null_1(argp, clnt)
  38.     VoidPtr argp;
  39.     CLIENT *clnt;
  40. {
  41.     static char res;
  42.  
  43.     bzero(&res, sizeof(res));
  44.     if (clnt_call(clnt, MOUNTPROC_NULL, xdr_void, argp, xdr_void, &res, TIMEOUT) != RPC_SUCCESS) {
  45.         return (NULL);
  46.     }
  47.     return ((VoidPtr)&res);
  48. }
  49.  
  50.  
  51. fhstatus *
  52. mountproc_mnt_1(argp, clnt)
  53.     dirpath *argp;
  54.     CLIENT *clnt;
  55. {
  56.     static fhstatus res;
  57.  
  58.     bzero(&res, sizeof(res));
  59.     if (clnt_call(clnt, MOUNTPROC_MNT, xdr_dirpath, argp, xdr_fhstatus, &res, TIMEOUT) != RPC_SUCCESS) {
  60.         return (NULL);
  61.     }
  62.     return (&res);
  63. }
  64.  
  65.  
  66. mountlist *
  67. mountproc_dump_1(argp, clnt)
  68.     VoidPtr argp;
  69.     CLIENT *clnt;
  70. {
  71.     static mountlist res;
  72.  
  73.     bzero(&res, sizeof(res));
  74.     if (clnt_call(clnt, MOUNTPROC_DUMP, xdr_void, argp, xdr_mountlist, &res, TIMEOUT) != RPC_SUCCESS) {
  75.         return (NULL);
  76.     }
  77.     return (&res);
  78. }
  79.  
  80.  
  81. VoidPtr 
  82. mountproc_umnt_1(argp, clnt)
  83.     dirpath *argp;
  84.     CLIENT *clnt;
  85. {
  86.     static char res;
  87.  
  88.     bzero(&res, sizeof(res));
  89.     if (clnt_call(clnt, MOUNTPROC_UMNT, xdr_dirpath, argp, xdr_void, &res, TIMEOUT) != RPC_SUCCESS) {
  90.         return (NULL);
  91.     }
  92.     return ((VoidPtr)&res);
  93. }
  94.  
  95.  
  96. VoidPtr 
  97. mountproc_umntall_1(argp, clnt)
  98.     VoidPtr argp;
  99.     CLIENT *clnt;
  100. {
  101.     static char res;
  102.  
  103.     bzero(&res, sizeof(res));
  104.     if (clnt_call(clnt, MOUNTPROC_UMNTALL, xdr_void, argp, xdr_void, &res, TIMEOUT) != RPC_SUCCESS) {
  105.         return (NULL);
  106.     }
  107.     return ((VoidPtr)&res);
  108. }
  109.  
  110.  
  111. exports *
  112. mountproc_export_1(argp, clnt)
  113.     VoidPtr argp;
  114.     CLIENT *clnt;
  115. {
  116.     static exports res;
  117.  
  118.     bzero(&res, sizeof(res));
  119.     if (clnt_call(clnt, MOUNTPROC_EXPORT, xdr_void, argp, xdr_exports, &res, TIMEOUT) != RPC_SUCCESS) {
  120.         return (NULL);
  121.     }
  122.     return (&res);
  123. }
  124.  
  125.  
  126. exports *
  127. mountproc_exportall_1(argp, clnt)
  128.     VoidPtr argp;
  129.     CLIENT *clnt;
  130. {
  131.     static exports res;
  132.  
  133.     bzero(&res, sizeof(res));
  134.     if (clnt_call(clnt, MOUNTPROC_EXPORTALL, xdr_void, argp, xdr_exports, &res, TIMEOUT) != RPC_SUCCESS) {
  135.         return (NULL);
  136.     }
  137.     return (&res);
  138. }
  139.  
  140. @
  141.  
  142.  
  143. 1.1
  144. log
  145. @Initial revision
  146. @
  147. text
  148. @d7 1
  149. a7 1
  150. void *
  151. d9 1
  152. a9 1
  153.     void *argp;
  154. d18 1
  155. a18 1
  156.     return ((void *)&res);
  157. d39 1
  158. a39 1
  159.     void *argp;
  160. d52 1
  161. a52 1
  162. void *
  163. d63 1
  164. a63 1
  165.     return ((void *)&res);
  166. d67 1
  167. a67 1
  168. void *
  169. d69 1
  170. a69 1
  171.     void *argp;
  172. d78 1
  173. a78 1
  174.     return ((void *)&res);
  175. d84 1
  176. a84 1
  177.     void *argp;
  178. d99 1
  179. a99 1
  180.     void *argp;
  181. @
  182.